package com.ztools.wx.service.impl;

import com.ztools.api.service.pc.PcStoreService;
import com.ztools.common.model.pc.store.OnlineStock;
import com.ztools.common.model.pc.store.StoreSale;
import com.ztools.wx.service.WxStoreService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: seeTools
 * @Date: 2023/5/30  14:46
 * @Version 1.0
 */
@Service
public class WxStoreServiceImpl implements WxStoreService {

    @Reference(version = "1.0", check = false, timeout = 3000)
    private PcStoreService pcStoreService;


    @Override
    public List<OnlineStock> getStoreMall() {
        return pcStoreService.getStoreMall();
    }

    @Override
    public List<StoreSale> getStoreSale(Long memberId) {
        return pcStoreService.getStoreSale(memberId);
    }

}
